import instance from "@/utils/request";

export const getPermissionList = () => instance.get("/permissions")

// 根据权限名称  搜索权限
export const searchPermissionByTitle = (title) => instance.get("/permissions/search", {params: title})

// 添加或修改权限信息  saveOrUpdate
export const saveOrUpdatePermission = (authForm) => instance.post("/permissions/saveOrUpdate", authForm)

// 根据权限id 查询权限信息
export const getPermissionById = (pid) => instance.get("/permissions/" + pid)

// 根据权限id 删除权限信息
export const removePermissionById = (pid) => instance.delete("/permissions/" + pid)
